package com.ordertracker.util;

import com.ordertracker.Application;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

/**
 * Description of class.
 * Created 2/1/13 4:05 PM
 *
 * @author andrey.rodin@playtech.com
 */

public final class DateUtils {

    public synchronized static Date getCurrDate() {
        final TimeZone timezone = Application.getApplication().getConfig().getTimezone();
        final Date currDate = Calendar.getInstance(timezone).getTime();
        return currDate;
    }
}
